<template>
  <div></div>
</template>

<script setup>
import { onMounted } from 'vue';

console.log('A组件挂载前执行');

onMounted(() => {
  console.log('B组件挂载时执行');
});
</script>
